<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Global Image - Editar &aacute;rea de atua&ccedil;&atilde;o</title>
            <link rel="stylesheet" type="text/css" href="/globalimage2/faces/jsfcrud.css" /><%@ include file="/WEB-INF/jspf/AjaxScripts.jspf" %><script type="text/javascript" src="/globalimage2/faces/jsfcrud.js"></script>
        </head>
        <body>
            <%@include file="../../WEB-INF/jspf/header/head.jspf"%>
            <div style="float:left">
                <%@include file="../../WEB-INF/jspf/header/menuDinamico.jspf"%>
            </div>
            <div id="div_content">
                <h:form>
                    <h3>Editar &aacute;rea de atua&ccedil;&atilde;o</h3>

                    <h:commandLink action="#{areaAtuacao.edit}" value="Salvar">
                        <f:param name="jsfcrud.currentAreaAtuacao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][areaAtuacao.areaAtuacao][areaAtuacao.converter].jsfcrud_invoke}"/>
                    </h:commandLink>
                    &nbsp;|&nbsp;
                    <h:commandLink value="Remover" action="#{areaAtuacao.destroy}">
                        <f:param name="jsfcrud.currentAreaAtuacao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][areaAtuacao.areaAtuacao][areaAtuacao.converter].jsfcrud_invoke}"/>
                    </h:commandLink>
                    &nbsp;|&nbsp;
                    <h:commandLink action="#{areaAtuacao.detailSetup}" value="Exibir" immediate="true">
                        <f:param name="jsfcrud.currentAreaAtuacao" value="#{jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][areaAtuacao.areaAtuacao][areaAtuacao.converter].jsfcrud_invoke}"/>
                    </h:commandLink>
                    &nbsp;|&nbsp;
                    <h:commandLink action="#{areaAtuacao.listSetup}" value="Exibir todos" immediate="true"/>

                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>


                    <h:panelGrid columns="2">
                        <h:outputText value="Nome:"/>
                        <h:inputText id="nome" value="#{areaAtuacao.areaAtuacao.nome}" title="Nome" required="true" maxlength="254" size="50" requiredMessage="The nome field is required." />
                        <h:outputText value="Empresas relacionadas:"/>
                        <h:selectManyListbox id="empresaCollection" style="width: 330px;" value="#{areaAtuacao.areaAtuacao.jsfcrud_transform[jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['entidade.controller.JSF.util.JsfUtil'].jsfcrud_method.arrayToList].empresaCollection}" title="EmpresaCollection" size="6" converter="#{empresa.converter}" >
                            <f:selectItems value="#{empresa.empresaItemsAvailableSelectMany}"/>
                        </h:selectManyListbox>
                    </h:panelGrid>
                </h:form>
            </div>
        </body>
    </html>
</f:view>
